package nix.enum_;

public class TestEnum {

	private int color1;

	private Color2 color2;

	private Color3 color3;

	public void test() {
		this.color1 = Color1.RED;
		this.color1 = 1000;

		this.color2 = Color2.RED;

		this.color3 = Color3.RED;
	}
}

class Color1 {
	public static final int RED = 1;
	public static final int GREEN = 2;
	public static final int YELLOW = 3;
}

class Color2 {
	private Color2() {
	}

	public static final Color2 RED = new Color2();
	public static final Color2 GREEN = new Color2();
	public static final Color2 YELLOW = new Color2();
}

enum Color3 {
	RED, GREEN, YELLOW;
}